package com.hnyc.goods.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hnyc.goods.mapper.GoodsImgMapper;
import com.hnyc.goods.domain.GoodsImg;
import com.hnyc.goods.service.IGoodsImgService;

/**
 * goodsService业务层处理
 * 
 * @author zero
 * @date 2023-03-10
 */
@Service
public class GoodsImgServiceImpl implements IGoodsImgService 
{
    @Autowired
    private GoodsImgMapper goodsImgMapper;

    /**
     * 查询goods
     * 
     * @param id goods主键
     * @return goods
     */
    @Override
    public GoodsImg selectGoodsImgById(Long id)
    {
        return goodsImgMapper.selectGoodsImgById(id);
    }

    /**
     * 查询goods列表
     * 
     * @param goodsImg goods
     * @return goods
     */
    @Override
    public List<GoodsImg> selectGoodsImgList(GoodsImg goodsImg)
    {
        return goodsImgMapper.selectGoodsImgList(goodsImg);
    }

    /**
     * 新增goods
     * 
     * @param goodsImg goods
     * @return 结果
     */
    @Override
    public int insertGoodsImg(GoodsImg goodsImg)
    {
        return goodsImgMapper.insertGoodsImg(goodsImg);
    }

    /**
     * 修改goods
     * 
     * @param goodsImg goods
     * @return 结果
     */
    @Override
    public int updateGoodsImg(GoodsImg goodsImg)
    {
        return goodsImgMapper.updateGoodsImg(goodsImg);
    }

    /**
     * 批量删除goods
     * 
     * @param ids 需要删除的goods主键
     * @return 结果
     */
    @Override
    public int deleteGoodsImgByIds(Long[] ids)
    {
        return goodsImgMapper.deleteGoodsImgByIds(ids);
    }

    /**
     * 删除goods信息
     * 
     * @param id goods主键
     * @return 结果
     */
    @Override
    public int deleteGoodsImgById(Long id)
    {
        return goodsImgMapper.deleteGoodsImgById(id);
    }
}
